.cvat_canvas_hidden {
    display: none;
}

.cvat_canvas_shape {
    fill-opacity: 0.05;
    stroke-opacity: 1;
}

polyline.cvat_canvas_shape {
    fill-opacity: 0;
    stroke-opacity: 1;
}

.cvat_canvas_text {
    font-weight: bold;
    font-size: 1.2em;
    fill: white;
    cursor: default;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    text-shadow: 0px 0px 4px black;
    user-select: none;
    pointer-events: none;
}

.cvat_canvas_crosshair {
    stroke: red;
}

.cvat_canvas_shape_activated {
    fill-opacity: 0.3;
}

.cvat_canvas_shape_grouping {
    fill: darkmagenta;
    fill-opacity: 0.5;
}

polyline.cvat_canvas_shape_grouping {
    stroke: darkmagenta;
    stroke-opacity: 1;
}

.cvat_canvas_shape_merging {
    fill: blue;
    fill-opacity: 0.5;
}

polyline.cvat_canvas_shape_splitting {
    stroke: dodgerblue;
    stroke-opacity: 1;
}

.cvat_canvas_shape_splitting {
    fill: dodgerblue;
    fill-opacity: 0.5;
}

polyline.cvat_canvas_shape_merging {
    stroke: blue;
    stroke-opacity: 1;
}

.cvat_canvas_shape_drawing {
    fill-opacity: 0.1;
    stroke-opacity: 1;
    fill: white;
    stroke: black;
}

.cvat_canvas_shape_occluded {
    stroke-dasharray: 5;
}

.svg_select_boundingRect {
    opacity: 0;
    pointer-events: none;
}

#cvat_canvas_wrapper {
    width: 100%;
    height: 93%;
    border-radius: 5px;
    background-color: white;
    overflow: hidden;
    position: relative;
}

#cvat_canvas_loading_animation {
    z-index: 1;
    position: absolute;
    width: 100%;
    height: 100%;
}

#cvat_canvas_loading_circle {
    fill-opacity: 0;
    stroke: #09c;
    stroke-width: 3px;
    stroke-dasharray: 50;
    animation: loadingAnimation 1s linear infinite;
}

#cvat_canvas_text_content {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#cvat_canvas_background {
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
}

#cvat_canvas_grid {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#cvat_canvas_grid_pattern {
    opacity: 1;
    stroke: white;
}

#cvat_canvas_content {
    position: absolute;
    z-index: 2;
    outline: 10px solid black;
    width: 100%;
    height: 100%;
}

@keyframes loadingAnimation {
    0%   {stroke-dashoffset: 1; stroke: #09c;}
    50%  {stroke-dashoffset: 100; stroke: #f44;}
    100% {stroke-dashoffset: 300; stroke: #09c;}
}